import request from "../../request.js";
//获取登录用户信息
export const getUserinfo = ()=>{
	return request.get('/app/user/getUserInfo')
} 
//获取协议类型 注册协议1，隐私政策2，下单须知3，计费规则4
export const getAgreement = (type)=>{
	return request.get(`/app/platform/platformProtocol/${type}`)
}
//加盟合作 
export const addCollaborate = (pames)=>{
	return request.post('/app/joinHands/add/h5',pames)
}
export const login = (params)=>{
	return request.post('/auth/smsLogin/app',params)
}
export const getCode = (params)=>{
	return request.get('/resource/sms/code',params)
}
//根据用户ID查询详情
export const getUserDynamic = (id)=>{
	return request.get(`/app/user/getUserInfoById/${id}`)
}
//修改会员管理
export const updateUserInfo = (params)=>{
	return request.put('/app/user/update/h5',params)
}
//H5自动登录
export const h5AutoLogin = (params)=>{
	return request.post('/auth/login/h5/code',params)
}
//H5登录
export const h5Login = (params)=>{
	return request.post('/auth/smsLogin/h5',params)
}
//获取js微信sdk配置信息
export const getWxJsApis = (domain)=>{
    return request.post('/app/platform/getJsConfig',domain);
}